/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.util.Collections;
import java.util.Map;
import model.Etage;

/**
 *
 * @author benoit
 */
public class EtageControleur {
    private Map<Integer,Etage> etages;

    public EtageControleur(Map<Integer, Etage> etages) {
        this.etages = etages;
    }
    
    public Etage getEtageByNumero(Integer numero) {
        return etages.get(numero);
    }
    
    public int getEtageMax() {
        return Collections.max(etages.keySet());
    }
    
    public int getEtageMin() {
        return Collections.min(etages.keySet());
    }
}
